package com.neusoft.movie.v_movies.service;

import com.neusoft.movie.v_movies.javabean.CommentBean;
import com.neusoft.movie.v_movies.javabean.MoviesBean;
import com.neusoft.movie.v_movies.javabean.ResultBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/12/26.
 */

public interface MoviesService {

    /*电影列表*/
    @GET("Movies/getMovieslist")
    Call<List<MoviesBean>> getMovieslist();

    /*电影详情*/
    @GET("Movies/getDetail")
    Call<MoviesBean> getDetail(
            @Query("m_id") int m_id
    );

//
//    /*获取某条电影的所有评论*/
//    @GET("Movies/getMoviesCommentlist")
//    Call<List<CommentBean>> getMoviesCommentlist(
//            @Query("comment_id") int comment_id,
//            @Query("comment_flag") int comment_flag
//    );

    /*搜索电影*/
    @GET("Movies/searchMovies")
    Call<List<MoviesBean>> searchMovies(
            @Query("m_name") String m_name
    );

    @GET("Collect/collectstate")
    Call<ResultBean> collectstate(
            @Query("u_id") int u_id,
            @Query("collect_id") int collect_id,
            @Query("collect_flag") int collect_flag
    );
}
